package com.webservice.vo.impl;

import com.webservice.vo.IBaseVO;

/**
 * 
* @ClassName: ReturnMsgVo
* @Description: 返回结果通用VO
* @author A18ccms a18ccms_gmail_com
* @date 2013-12-16 上午10:24:34
*
 */
public class ReturnMsgVo implements IBaseVO {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String code;
	
	/**
	 * 返回结果：0：成功；-1：失败
	 */
	private int  result;
	
	/**
	 * 成功或失败的详细信息
	 */
	private String msg;
	
	public ReturnMsgVo(){
		
	}
	
	public ReturnMsgVo(String code,int  result,String msg){
		this.code=code;
		this.result=result;
		this.msg=msg;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * (非 Javadoc)
	* <p>Title: getTableName</p>
	* <p>获得表名</p>
	* @return
	* @see com.webservice.vo.IBaseVO#getTableName()
	 */
	@Override
	public String getTableName() {
		return null;
	}

	/**
	 * (非 Javadoc)
	* <p>Title: getPrimaryKey</p>
	* <p>获得主键</p>
	* @return
	* @see com.webservice.vo.IBaseVO#getPrimaryKey()
	 */
	@Override
	public String getPrimaryKey() {
		return null;
	}

	/**
	 * (非 Javadoc)
	* <p>Title: getRootTag</p>
	* <p>获得XML跟节点名称</p>
	* @return
	* @see com.webservice.vo.IBaseVO#getRootTag()
	 */
	@Override
	public String getRootTag() {
		return "returnmsg";
	}
	
	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}
	
	
	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
